interface State {
  userName: string 
}

export default {
  namespaced: true,
  state: {
    userName: '张全根呀'
  } as State,
  mutations: {
    setName (state: State, value: string) {
      state.userName = value
    }
  },
  actions: {

  },
  getters: {
    myName: (state: State) => state.userName + 'nice'
  }
}